package com.wei.czz.common.property;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-05-31 21:34:54
 * className: BatchProperty
 * version: 1.0
 * description:
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "system.batch")
@Validated
public class BatchProperty extends BaseEntity {

    /**
     * 单次请求最大允许处理条数
     */
    @NotNull(message = "单次请求最大允许处理条数不能为空")
    private Integer maxSize;

}
